/*
 * 文件名：ApnsJob.java
 * 版权：
 * 描述：TODO
 * 修改人：zuo liubo
 * 修改时间：2013-4-11 下午6:33:11
 */
package com.scpii.api.common.job;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.scpii.api.service.push.apns.Apns;

/**
 * @description IOS推送任务
 * @author zuo liubo
 * @date 2013-4-11
 */
@Component
public class ApnsJob {
	private Log logger = LogFactory.getLog(ApnsJob.class);
	@Resource
	private Apns apns;

	public void run() {
		try {
			logger.info("PUSH scan DB");
			apns.sendPushInfo();
		} catch (Exception e) {
			logger.error(e);
		}
	}
}
